﻿@using Resources;
<script type="text/javascript" src="@Url.Content(@properties.personaJS)" ></script> 
<script type="text/javascript" src="@Url.Content(@properties.calendarioV2JS)" ></script> 
<script type="text/javascript">
    $(function () {
        calendarioFuturo1('dFecIniAct', '1');
        calendarioFuturo1('dFecFinAct', '1');
        //calendarioGeneral('FecIniActiv1', '1');
       // calendarioGeneral('FecFinActiv1', '1');
        setAutoAyudaInstitucion("#nIdeInstitucion", "#nIdeCodPaisDoc", "#nIdeTipoDocum", "#vNumDocum", "#nNombInst", "/AutoAyuda/ListaInstitucionAuto", "1");        
        setAutoAyudaCompendioDetalle("#nNombCarrera", "#nIdeCarrera", 24, "/AutoAyuda/ListaDetCompendioAuto");
        inicioPopPupModal("#divDatosPopPup", 300, 600);
        inicioPopPupModal("#divRegistroPopPup", 200, 800);
    });
</script>
<div id="divDatosCE">@RenderPage("../../Shared/ROCentroEstudios.cshtml")</div>
<fieldset style="width: 98%;" class="fieldsetStyle1">
    <legend><span>Centro de Estudios</span></legend>
    <table border="0">
        <tr>
            <td>Nivel<span class="asterisco">(*)</span></td>
            <td>Tipo de Institución<span class="asterisco">(*)</span></td>
            <td>Nombre de la Institución<span class="asterisco">(*)</span></td>
            <td>Fecha Inicio<span class="asterisco">(*)</span></td>
            <td>Fecha Fin<span class="asterisco">(*)</span></td>
            <td class="center">Promedio<span class="asterisco">(*)</span></td>
           @* <td>Tipo de Estudio</td>*@
            <td colspan="2">Grado Académico</td>
            <td rowspan="4"><img src="@Url.Content("~/images/check.jpg")" class="lupita2" alt="AGREGAR"  id="imgAgregar" onclick="javascript:registraInfoAcademicaMante(this,'#divDatosCE');"/></td>
        </tr>
        <tr id="trDuplicar">
            <td>@Html.DropDownList("nIdeNivelEstudio", (IEnumerable<SelectListItem>)ViewBag.NivelEstudio, "--Seleccione--", new { onchange = "javascript:cambiaNivelEstudio(this);" })</td>
            <td>@Html.DropDownList("nIdeTipoInst", (IEnumerable<SelectListItem>)ViewBag.TipoInstitucion, "--Seleccione--")</td>
            <td>
                <table>
                    <tr>
                        <td><input type="hidden" id="nIdeInstitucion" />
                            <input type="text" id="nNombInst" name="nNombInst" style="width: 150px;" /></td>
                        <td><img src="@Url.Content("~/images/empresa.png")" class="lupita2" alt="AGREGAR INSTITUCION" onclick="javascript: addPersonaJuridicaPop('1',this);" /></td>
                        <td><img src="@Url.Content("~/images/buscar.gif")" class="lupita2" alt="LISTAR INSTITUCION" onclick="javascript:listarIntitucion('1','#divDatosPopPup','#nNombInst','#nIdeInstitucion');" /></td>
                    </tr>
                </table>
            </td>
            <td>
                <input type="text" id="dFecIniAct" name="dFecIniAct" style="width: 60px;" onkeyup="javascript:setFechaCaja(this);" />
            </td>
            <td>
                <input type="text" id="dFecFinAct" name="dFecFinAct" style="width: 60px;" onkeyup="javascript:setFechaCaja(this);" />
            </td>
            <td class="center"><input type="text" id="nPromedio" name="nPromedio" style="width: 30px;" /></td>
            @*<td>@Html.DropDownList("nIdeTipoEstudio", (IEnumerable<SelectListItem>)ViewBag.TipoEstudio, "--Seleccione--", new { @disabled = "disabled" })</td>*@
            <td colspan="2">@Html.DropDownList("nIdeGrado", (IEnumerable<SelectListItem>)ViewBag.GradoAcademico, "--Seleccione--", new { @disabled = "disabled" })</td>
        </tr>
        <tr> 
            <td colspan="2">Carrera Profesional</td>
            <td>Año que está Cursando</td>
            <td colspan="2">Escala</td>
            <td colspan="2">Desempeño Académico</td>
            <td>Ciclo</td>
        </tr>
        <tr> 
            <td colspan="2">
                <table style="width:200px;">
                    <tr>
                        <td><input type="hidden" id="nIdeCarrera" />
                            <input type="text" id="nNombCarrera" name="nNombCarrera" style="width: 200px;" /></td>
                        <td><img src="@Url.Content("~/images/toga.png")" class="lupita2" alt="LISTA CARRERA" onclick="javascript:listarCarrera('#divDatosPopPup','#nNombCarrera','#nIdeCarrera');" /></td>                        
                    </tr>
                </table>
            </td>
            <td>@Html.DropDownList("nAnnioCur", (IEnumerable<SelectListItem>)ViewBag.AnnioCursa, "--Seleccione--")</td>           
            <td colspan="2">@Html.DropDownList("nIdeEscala", (IEnumerable<SelectListItem>)ViewBag.EscalaUni, "--Seleccione--")</td>
            <td colspan="2">@Html.DropDownList("nIdeDesemp", (IEnumerable<SelectListItem>)ViewBag.DesempenoUni, "--Seleccione--")</td>
            <td>@Html.DropDownList("nIdeCiclo", (IEnumerable<SelectListItem>)ViewBag.CicloUni, "--Seleccione--")</td>
        </tr> 
        <tr> 
            <td colspan="2">Campus</td>
            <td>Código Universitario</td>
            <td colspan="2">Costo Mensual</td>
            <td>Costo de Matrícula</td>
        </tr>
        <tr> 
            <td colspan="2"><input type="text" id="vCampus" name="vCampus" style="width: 200px;" /></td>
            <td><input type="text" id="nCodigoUni" name="nCodigoUni" style="width: 130px;" /></td>
            <td colspan="2"><input type="text" id="nCostoMensual" name="nCostoMensual" style="width: 100px;" onkeypress = "return validarSoloNumerosPunto(event);" /></td>
            <td><input type="text" id="nCostoMatricula" name="nCostoMatricula" style="width: 100px;" onkeypress = "return validarSoloNumerosPunto(event);"/></td>
        </tr>    
    </table>
   <br />
    <table style="width:100px;" border="1" id="conte">
        <tr>
            <td>
                <table id="tblNotas">
                    <tr>
                        <td>Nota<span id="spNota">1</span></td>
                        <td>:</td>
                        <td><input type="text" style="width:30px;" id="nNota"  onblur="javascript:calculaPromedio(this);"  /></td>
                        <td><img src="@Url.Content("~/images/borrar.gif")" class="lupita2" alt="ELIMINARPRIN" id="imgBorrarPrincipal" style="display:none" onclick="javascript:deleteRowNotas(this);"   />
                            <img src="@Url.Content("~/images/mas.gif")" class="lupita2" alt="AGREGARNOTA"  onclick="javascript:clonarNota(this);"/>
                        </td>
                    </tr>                    
                </table>
            </td>            
        </tr>        
    </table>
    <table>
        <tr><td>Promedio:<input type="text" id="nPromedioNotas" style="width:30px;" readonly="true"/></td></tr>
    </table>
</fieldset>
<div id="divDatosPopPup" title="LISTADO DE REGISTROS ENCONTRADOS" />
